﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.HumanAffairs.Promotions
{
    public interface IPromotionRepository
    {
        /// <summary>
        /// 转正办理——查询分页显示
        /// </summary>
        /// <param name="PromotionName"></param>
        /// <param name="DeptId"></param>
        /// <param name="PositionId"></param>
        /// <param name="EntryTime"></param>
        /// <param name="ApplyTime"></param>
        /// <param name="State"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<PromotionDto>> GetPromotionPageShow(string PromotionName, int DeptId, int PositionId, DateTime? EntryTime, DateTime? ApplyTime, int State, int pageindex = 1, int pagesize = 3);
        /// <summary>
        /// 转正办理——逻辑删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeletePromotion(int id);
        /// <summary>
        /// 转正办理——批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteBatchPromotion(string ids);
        /// <summary>
        /// 转正办理——编辑
        /// </summary>
        /// <param name="promotionDto"></param>
        /// <returns></returns>
        Task<int> PutUpdatePromotion(PromotionDto promotionDto);
        /// <summary>
        /// 转正办理——添加
        /// </summary>
        /// <param name="promotionDto"></param>
        /// <returns></returns>
        Task<int> PostAddPromotion(PromotionDto promotionDto);
    }
}
